<template>
	<view class="newIndex">
		<view class="top-bg">
			<view class="wrap">
				<view class="index-top">
					<view class="">
						<image class="icon" src="/static/index/icon.png"></image>
						<text class="txt" style="font-family: Kaiti, 楷体-简;letter-spacing: -2px;">
							助业业主端
							<!-- <text style="color: #e3e3e7;margin-left: 6rpx;font-size: 15px;"> ({{projectItem.proName}})</text> -->
						</text>
						<text style="color: #e3e3e7;margin-left: 6rpx;font-size: 15px;" v-show="projectItem.proName">
							({{projectItem.proName}})</text>
					</view>
					<view v-show="projectItem.proName">
						<image @click="changeHead" style="width: 29px;height: 23px;" src="../../static/index/change.png">
						</image>
					</view>
					
				</view>
    
		    <view class="noticeWrap">
					<view class="notice">
						<!-- 	<view class="notice-horn" @click="noticeListFun">
							<view class="circle" v-if="!isNotice"></view>
							<image  class="horn" src="../../static/index/notice.png"></image> -->

						<view class="notice-horn" @click="noticeListFun">
							<view class="circle" v-if="noticeList"></view>
							<image class="horn" src="../../static/index/notice.png"></image>
							<text class="scroll-txt">
								<u-notice-bar v-if="noticeList" :volume-icon="false" type="success" :list="noticeList">
								</u-notice-bar>
								<u-notice-bar v-else :volume-icon="false" type="success" :list="['暂无通知']"></u-notice-bar>
							</text>
						</view>
					</view>
					<view class="" @click="scanFun">
						<image style="width: 70rpx;height:70rpx;" src="../../static/index/saoma.png"></image>
					</view>
				</view>
				
				<swiper style='margin: 14rpx 0 0 0;' :indicator-dots="true" height="190" :autoplay="true"
					:interval="5000" :duration="1000" circular >
					<swiper-item v-for="(item,index) in swiperList" :key='index' >
						<view class="swiper-item" @click="toLink() ">
							<image mode="widthFix" class='swiper_img' style="width: 100%;border-radius: 16rpx;"
								:src="item.image" />
						</view>
						<view class="down__Owner_App " v-show="index == 1" @click='downBtn'>
							<view class="down_cont_btn"  >
								<u-button  shape="circle" type="warning">下载APP</u-button>
							</view>
						</view>
					</swiper-item>
				</swiper>

				<view v-for="(item,index) in itemList" :key="index">
					<view :style="{'marginBottom':(index+1 == itemList.length?'10rpx':'')}">
						<view class="item" v-if="item.id == 1">
							<view class="title">{{ item.name }}</view>
							<view class="more" @click="moreItem(item.id)" v-if="item.id != 3">
								更多
								<image style="margin-left: 14rpx;" class="more-img" src="../../static/index/gd.png">
								</image>
							</view>
						</view>
						<view class="item" v-else style="margin-top: -14px;">
							<view class="title">{{ item.name }}</view>
							<view class="more" @click="moreItem(item.id)" v-if="item.id != 3">
								更多
								<image style="margin-left: 14rpx;" class="more-img" src="../../static/index/gd.png">
								</image>
							</view>
						</view>
						<view class="application">
							<view class="block">

								<view class="app" style="position: relative;" @click='tapName(item1)' v-for="(item1,index1) in item.project"
									:key="index1+10">
									<image class="app-img" :src="item1.img"></image>
									<text class="circle1" v-if="item1.id==21&&noticePoint>0">{{noticePoint}}</text>
									<text class="circle1" v-if="item1.id==12 &&shuiDian>0">{{shuiDian}}</text>
									<text class="circle1" v-if="item1.id==11 &&propertyFees==0"></text>
									<text class="circle1" v-if="item1.id==12 &&water==0"></text>
									<text class="circle1" v-if="item1.id==13 &&parkingSpaceFees==0"></text>
									<text class="circle1" v-if="item1.id==14 &&repairFees==0"></text>
									<text class="circle1" v-if="item1.id==15 &&heatingCosts==0"></text>
									<text class="circle1" v-if="item1.id==16 &&refrigerationCharges==0"></text>
									<text class="circle1" v-if="item1.id==17 &&electricity==0"></text>
									<text class="circle1" v-if="item1.id==35 &&insuranTotal>0">{{insuranTotal}}</text>
									<view class="txt">{{ item1.name }}</view>

								</view>
							</view>
						</view>
					</view>
				</view>
			</view>
		</view>

		<view v-if="modalShow">
			<view class="modal-bg" @click="modalShow = false"></view>
			<view class="modal-cont">
				<view class="modal-text" @click="handlerAdd(item)" v-for="(item, index) in hourseList" :key="index"
					:name='index'>{{item.proName}}</view>
				<view class="modal-cancel" @click="modalShow = false">取消</view>
			</view>
		</view>

<!-- 开始附议弹框 -->

<uni-popup ref="popup" background-color="#fff" >
	<view class="meeting-dialog">
				<view class="meeting-wrap">
					<view class="meeting-title">
						{{voteData.community_name}}首次成立业主大会申请附议
					</view>
					<view class="meeting-start">
						尊敬的{{projectItem.ownerName}}业主
					</view>
					<view class="meeting-cont">
						{{voteData.community_name}}首次成立业主大会申请已开启附议投票，您可以在投票模块进行附议。
					</view>
					<view class="meeting-start">
						特此通知
					</view>
					<view class="meeting-start">
						{{voteData.begin_time}}
					</view>
					<view class="meeting-start">
						发起人（{{voteData.full_name}}）
					</view>
					<view class="meeting-btn" @click="goFy">
						去附议
					</view>
				</view>
	</view>
</uni-popup>
		
		
		<!-- <button type="default" @click="saomacode">扫描</button> -->
	</view>
</template>
<script>
	export default {
		data() {
			return {
				current: 1,
				modalShow: false,
				isDown: false, //是否显示下载按钮
				housingFlag: false,
				hourseList: null,
				hourseStr: null,
				hourseNum: 0, //选择第几个房间,
				bol: false, //弹窗
				PopupList: [],
				index: 0,
				projectItem: {},
				title: '素胚勾勒出青花，笔锋浓转淡',
				subTitle: '2020-05-15',
				thumb: 'http://pic2.sc.chinaz.com/Files/pic/pic9/202002/hpic2119_s.jpg',
				show: false,

				swiperList: [{
						index: 1,
						image: 'http://clhy-img.oss-cn-beijing.aliyuncs.com/venusImage/2021-12-15/1639571200709.png',
					},
					{
						index: 2,
						image: '../../static/index/zyw.png',
					}
				],
				annouArr: [],
				noticeList: [],
				datalist: [],
				//text1: 'uView UI众多组件覆盖开发过程的各个需求，组件功能丰富，多端兼容。让您快速集成，开箱即用'
				text1: '足协杯战线连续第2年上演广州德比战，上赛',
				itemList: [{
						id: 1,
						name: '物业缴费',
						project: [{
								id: 11,
								index: 1,
								name: '物业费',
								img: '../../static/index/wyf.png',
								link: '/pages/pay/pay'
							},
							{
								id: 12,
								index: 2,
								count: 0,
								name: '水费',
								img: '../../static/index/sdf.png',
								link: '/pages/forwater/forWater'
							},
							{
								id: 13,
								index: 3,
								name: '车位费',
								img: '../../static/index/cwf.png',
								link: '/pages/pay/parking'
							},
							{
								id: 14,
								index: 4,
								name: '维修费',
								img: '../../static/index/wxf.png',
								link: '/pages/repairList/repairList'
							},
							{
								id: 15,
								index: 5,
								name: '暖气费',
								img: '../../static/index/nqf.png',
								link: '/pages/heating/heating'
							},
							{
								id: 16,
								index: 6,
								name: '制冷费',
								img: '../../static/index/zlf.png',
								link: '/pages/heating/colding'
							},
							{
								id: 17,
								index: 7,
								name: '电费',
								img: '../../static/index/df.png',
								link: '/pages/forwater/forElectricity'
							},
							// {
							// 	id: 18,
							// 	index: 7,
							// 	name: '开票设置',
							// 	img: '../../static/index/df.png',
							// 	link: '/pages/invoice/invoiceIndex'
							// },
						]
					},
					{
						id: 2,
						name: '公告公示',
						project: [{
								id: 21,
								name: '通知公告',
								img: '../../static/index/tzgg.png',
								link: '/pages/authentication/newNoticeList'
							},
							{
								id: 22,
								name: '工作公示',
								img: '../../static/index/gggs.png',
								link: '/pages/publicity/publicity'
							},
							{
								id: 23,
								name: '财务公示',
								img: '../../static/index/gwgs.png',
								link: '/pages/finance/finance'
							},
							{
								id: 30,
								name: '表决平台',
								img: '../../static/vote/vote_icon.png',
								link: '/pages/vote/voteList'
							},
							{
								id: 24,
								name: '小区资料',
								img: '../../static/index/xqzl.png',
								link: '/pages/community/communityindex'
							},
							{
								id: 25,
								name: '失物招领',
								img: '../../static/index/swzl.png',
								link: '/pages/lostarticle/lostarticle'
							},
							{
								id: 26,
								name: '制度流程',
								img: '../../static/index/lc.png',
								link: '/pages/technological/process'
							},
							{
								id: 27,
								name: '物业合同',
								img: '../../static/index/contract.png',
								link: '/pages/contract/contractindex'
							},
							{
								id: 28,
								name: '小区员工',
								img: '../../static/index/xqyg.png',
								link: '/pages/personnel/personnelindex'
							},

						]
					},
					{
						id: 3,
						name: '日常操作',
						project: [

							{
								id: 31,
								name: '报修',
								img: '../../static/index/bx.png',
								link: '/pages/guarantee/guarantee'
							},
							{
								id: 32,
								name: '装修管理',
								img: '../../static/index/zzgl.png',
								link: '/pages/renovation/renovationindex'
							},
							{
								id: 35,
								name: '保险理赔',
								img: '../../static/index/bxlp.png',
								link: '/pages/yeInsurance/indexlnsurance'
							},
							{
								id: 31,
								name: '诉讼记录',
								img: '../../static/index/ss.png',
								link: '/pages/user/litigationIndex'
							},
							{
								id: 33,
								name: '开门',
								img: '../../static/index/km.png',
								link:'/pages/index/saoma'
							},
							{
								id: 34,
								name: '监控查询',
								img: '../../static/index/jkgl.png'
							},
						]
					},
				],
				isNotice: true,
				noticePoint: '', //通知公告
				indexPoint: '', //底部首页
				msgPoint: '', //底部消息

				propertyFees:null,//物业费
				water:null,//水费
				parkingSpaceFees:null,//车位
				repairFees:null,//报修
				heatingCosts:null,//制热
				refrigerationCharges:null,//制冷
				electricity:null,//电
				insuranTotal:'',//保险理赔

				shuiDian: '', //水电
				room_id:null,//所处房间id
				user_id:null,//操作人userId

				isMeeting: true, //是否附议弹框
				id:null,
				voteData:{},
        voteState:false,
			}
		},
		// onLoad(option) {

		// 	// this.bol = !this.bol;//这是？？？？
		// 	// this.autoTime();
		// 	// this.getannouData();
		// 	// this.getNewNotice();
		// },
		onBackPress(options) {
		  console.log("用户按下物理返回键",options);
		},
		onShow(options) {
			//2022-7-23，首页代码基本流程调试
			let routes = getCurrentPages(); // 获取当前打开过的页面路由数组
			let curRoute = routes[routes.length - 1].route //获取当前页面路由
			let curParam = routes[routes.length - 1].options; //获取路由参数
				console.log(curRoute,curParam,'---获取来源地址0000000000000000')
			// #ifdef APP-PLUS
				//plus.runtime.setBadgeNumber(19);
				let appOpenParam = plus.runtime.arguments || 0
				if(appOpenParam){
					let params =JSON.stringify(appOpenParam);
						console.log(params,'---获取来源地址11')
					let parsOne = params.substring(params.indexOf('one-')+4,params.lastIndexOf('//'));
					//let parTwo = params.substring(params.lastIndexOf('//')+2,params.length-1);
					uni.showToast({
					 icon: 'none',
					 title: '-----'+parsOne,
					 duration: 5000
					});
					if( params.indexOf('one-')>-1 ){
						this.getVoteList(parsOne);
					}
					
				}
			//#endif
			//判断是否登录
			if (uni.getStorageSync('loginFlag')) {
				this.getHouseList()
			}
			this.checkBaseInfo();//检查基本参数赋值
			this.hourseNum = uni.getStorageSync('hourseNum') || 0
			this.hourseList = uni.getStorageSync('hourseList')
			this.housingFlag = false
			this.autoTime();
			this.getannouData();
			this.getNewNotice();
			
		},
		mounted(){
			//this.getVoteList(217)
		},
		methods: {
			//表决大会附议弹窗数据获取
			 getVoteList(parsOne){
				 let that = this;
				 //alert( JSON.stringify(this.$request.api));\
				 this.$request.api.getOwerVote({
					id:parsOne
				 }).then(res=>{
					this.voteData = res.data.data.voteUserDate
					// console.log(this.voteData,'--------相关数据');
					// uni.showToast({
					//  icon: 'none',
					//  title: JSON.stringify(this.voteData)+'-----'+parsOne,
					//  duration: 5000
					// });
					setTimeout(()=> {
						plus.runtime.arguments = {'abc':123}
						this.$refs.popup.open()
						//uni.setStorageSync('storage_key', 'hello');
					},1000)
					//document.getElementById('uPopup').style = 'block;'
				//	setTimeout(()=> {
						//	that.voteState = true;
							// uni.showToast({
							//  icon: 'none',
							//  title: that.voteState+'--88--'+parsOne,//JSON.stringify(appOpenParam),
							//  duration: 7000
							// });
					//}, 1000);
				 })
			 },
			//表决大会附议弹窗数据获取
			getVoteList1(){
					this.$request.api.getOwerVote({
						vote_user_id:uni.getStorageSync('rawData').userId,
					}).then(res=>{
						this.voteData = res.data.data.voteUserDate
						this.voteState = res.data.data.ownerVoteOpen
						console.log(this.voteData)
						console.log(this.voteState,"-----------")
					})
			},
      updateVote(){
					this.$request.api.upDatevote({
            id:this.voteData.vote_useer_id,
            up_code:0,
					}).then(res=>{
					  if (res){
					    console.log("清空")
            }
					})
			},






    scanFun(){
				// 允许从相机和相册扫码
				uni.scanCode({
					success: function (res) {
						console.log('区分扫码来源------------：', res)
						console.log('条码类型------------：' + res.scanType);
						console.log('条码内容------------：' + res.result);
						let obj = res
						let a = obj.result
						let index = a.indexOf("=")
						console.log(index)
						let id  = obj.result.substring(index+1)
						console.log(id)
						// if(res.scanType == 'QR_CODE'){
						// 	uni.navigateTo({
						// 		url:'/pages/index/saoma?id='+id
						// 	})
						// }
						if(res.scanType == 'QR_CODE'){
							uni.navigateTo({
								url:'/pages/vote/voteIndex?id='+id
							})
						}
					},
				})
			},
			//去附议
			goFy(){
				this.$refs.popup.close()
        this.updateVote();
				uni.navigateTo({
					url: "/pages/vote/voteIndex"
				})
			},
			checkBaseInfo(){
				var roomId = uni.getStorageSync('projectItem').roomId;
				var userId = uni.getStorageSync('rawData').userId;
				if(roomId){
					this.room_id = roomId;
				}
				if(userId){
					this.user_id = userId;
				}
				if(roomId && userId){
					//业主登录过，且有认证的房间，走红点查询接口
					this.getPaymentRedDot()
					this.getReddot()
				}
				
			},
			
			//红点
			async getReddot() {
				let res = await this.$request.api.messageList({
					room_id: uni.getStorageSync('projectItem').roomId,
					user_id: uni.getStorageSync('rawData').userId,
				});
				this.noticePoint = res.data.data.noticeRedTotal || ''; //通知公告
				this.indexPoint = res.data.data.indexRedTotal || ''; //底部首页图标红点
				this.msgPoint = res.data.data.chatRedTotal || ''; //底部消息红点
				//=====
				this.shuiDian = res.data.data.shuiDian; //水电表红点

				this.insuranTotal= res.data.data.insuranTotal;//保险理赔
        console.log(this.insuranTotal,"-------------------insuranTotal------------")
				//====
				console.log(this.indexPoint)
				if (this.indexPoint) {
					//tabBar 首页图标
					uni.setTabBarBadge({ //显示数字
						index: 0,
						text: this.indexPoint + ''
					})
				}
				if (this.msgPoint) {
					//tabBar 消息图标
					uni.setTabBarBadge({ //显示数字
						index: 1,
						text: this.msgPoint + ''
					})
				}
			},
			async getPaymentRedDot() {
				let res = await this.$request.api.paymentRed({
					room_id: this.room_id,
					user_id: this.user_id,
				});
				console.log(res.data.data)
				this.propertyFees = res.data.data.propertyFees ;
				this.water = res.data.data.water ; 
				this.parkingSpaceFees = res.data.data.parkingSpaceFees 
				this.repairFees = res.data.data.repairFees
				this.heatingCosts = res.data.data.heatingCosts  
				this.refrigerationCharges = res.data.data.refrigerationCharges ; 
				this.electricity = res.data.data.electricity ; 
				console.log(this.parkingSpaceFees,"sadsadsad")
			},
			//轮播图第二张有下载按钮
			autoTime() {
				let odd = 1;
				setInterval(() => {
					odd++;
					if (odd % 2 == 0) {
						this.isDown = true;
					} else {
						this.isDown = false;
					}
				}, 5000);
			},
			//获取openId
			login() {
				let _this = this;
				// 检查登录状态是否过期
				
			},
			//通知列表
			noticeListFun() {
				uni.navigateTo({
					url: '/pages/authentication/newNoticeList'
				})
			},
			//获取房屋信息
			async getHouseList() {
				let data = await this.$request.api.getUserAndRoom({
					user_id: uni.getStorageSync('rawData').userId,
					phone: uni.getStorageSync('phone'),
					user_name: uni.getStorageSync('rawData').userName,
				})
				// console.log(data)
				let res = await this.$request.api.house({
					mobile: uni.getStorageSync('phone')
				})
				if (res.data.data.projectList.length > 0) {
					this.hourseList = res.data.data.projectList
					this.hourseStr = this.hourseList[this.hourseNum]
					uni.setStorageSync('hourseList', res.data.data.projectList)
					if (!uni.getStorageSync('projectItem')) {
						uni.setStorageSync('projectItem', res.data.data.projectList[0])
						this.projectItem = uni.getStorageSync('projectItem');
					} else {
						this.projectItem = uni.getStorageSync('projectItem');
					}
					this.housingFlag = true
					this.modalShow = false
				} else if (res.data.data.projectList.length == 0) {
					this.housingFlag = false
					this.modalShow = false
					uni.removeStorageSync('hourseList')
					this.$openInvite()
				} else {
					this.housingFlag = false
					this.modalShow = true
				}
			},
			//newNotice 通知接口
			async getNewNotice() {
				let res = await this.$request.api.newNotice({
					// user_id: uni.getStorageSync('rawData').userId,
					notice_type: '业主端', //查询类型    助业网，员工端 业主端
					pageIndex: 1,
					room_id: uni.getStorageSync('projectItem').roomId,
					// project_id: uni.getStorageSync('projectItem').proId,
				});
				let nList = res.data.data.datalist || [];
				this.isNotice = res.data.data.readState || true;
				nList.forEach((item, index) => {
					this.noticeList.push((index + 1) + " " + item.notice_name + " ");
				})
			},
			//通知公告接口
			async getannouData() {
				return;
				this.noticeList = [];
				let res = await this.$request.api.Notice({
					My_user_id: uni.getStorageSync('rawData').userId,
					pageIndex: 1
				})
				if (this.pageIndex == 1) {
					this.annouArr = res.data.data.datalist || [];
				} else {
					this.annouArr = [...this.annouArr, ...res.data.data.datalist];
				}
				console.log(this.annouArr, '---通知列表')
				this.annouArr.forEach((item, index) => {
					this.noticeList.push((index + 1) + " " + item.notice_name + " ");
				})
				this.nextPage = res.data.data.isEndPage
				this.loading = true;
				uni.hideLoading();
			},
			//跳转更多
			moreItem(id) {
				//'/pages/index/indextow',3
				let par = '';
				if (id == 1) {
					par = 3;
				}
				if (id == 2) {
					par = 1;
				}
				uni.navigateTo({
					url: '/pages/index/indextow' + "?type=" + par
				})
			},
			newly() {
				uni.navigateTo({
					url: '/pages/information/informationindex'
				})
			},
			notice() {
				uni.navigateTo({
					url: '/pages/authentication/authentication'
				})
			},
			downBtn() {
				//pages/user/downApp
				uni.navigateTo({
					url: '/pages/user/downApp'
				})
				return;
				//应用宝链接
				// location.href='https://a.app.qq.com/o/simple.jsp?pkgname=uni.UNI21DD88C'
				//华为市场链接
				location.href =
					'https://appgallery.huawei.com/app/C104867875?sharePrepath=ag&locale=zh_CN&source=appshare&subsource=C104867875&shareTo=weixin&shareFrom=appmarket';
				//vivo链接
				//https://h5coml.vivo.com.cn/h5coml/appdetail_h5/browser_v2/index.html?appId=3319176&resource=301&source=2
			},
			//淘宝链接
			toLink() {
				var link = 'https://m.tb.cn/h.fCwkWwj?tk=eB2r2qkXSgm'
				this.$request.api.getBookLink({}).then(res => {
					link = res.data.data.link
					// #ifdef H5
					window.open(
						link
					)
					// #endif
					// #ifdef APP-PLUS
					plus.runtime.openURL(
						link,
						function(res) {
							console.log(res);
						});
					// #endif
				})
			},
			// 金刚区切换
			tapName(item) {
				(item.index == 1 || item.index == 2) && this.$Router.pushTab({
					path: item.link
				})
				if (item.link) {
					uni.navigateTo({
						url: item.link
					})
				} else {
					console.log("Dsadsa")
					uni.showToast({
						icon: 'none',
						title: '该小区《物业管理中心》未将该门禁/监控设备接入本系统，暂时不能使用。'
					})
				}

			},
			// 切换房屋
			estate() {
				this.$Router.push({
					path: '/pages/switch/switch'
				})
			},
			// 业主认证
			renBtn() {
				let _this = this;
				if (uni.getStorageSync('phone')) {
					if (uni.getStorageSync('loginFlag')) {
						_this.$Router.push({
							path: '/pages/address/address'
						})
					} else {
						uni.showModal({
							title: '请先实名认证',
							showCancel: false,
							confirmText: '确认',
							confirmColor: '#F9A832',
							success: function(res) {
								if (res.confirm) {
									_this.$Router.push({
										path: '/pages/realName/realName'
									})
								}
							}
						});
					}
				} else {
					uni.showModal({
						title: '请先登录',
						showCancel: false,
						confirmText: '确认',
						confirmColor: '#F9A832',
						success: function(res) {
							if (res.confirm) {
								console.log('a')
								_this.$Router.pushTab({
									path: '/pages/user/user'
								})
							}
						}
					});
				}
			},
			//弹窗
			dd() {
				console.log(this.bol)
				this.bol = !this.bol
			},
			cancel() {
				console.log(this.bol)
				this.bol = !this.bol
			},
			handlerAdd(item) {
				uni.setStorageSync('projectItem', item)
				this.projectItem = uni.getStorageSync('projectItem');
				this.modalShow = false
			},
			handlerXZ() {
				let _this = this;
				if (uni.getStorageSync('phone')) {
					if (uni.getStorageSync('loginFlag')) {
						this.modalShow = true
					} else {
						uni.showModal({
							title: '请先实名认证',
							showCancel: false,
							confirmText: '确认',
							confirmColor: '#F9A832',
							success: function(res) {
								if (res.confirm) {
									_this.$Router.push({
										path: '/pages/realName/realName'
									})
								}
							}
						});
					}
				} else {
					uni.showModal({
						title: '请先登录',
						showCancel: false,
						confirmText: '确认',
						confirmColor: '#F9A832',
						success: function(res) {
							if (res.confirm) {
								console.log('a')
								_this.$Router.pushTab({
									path: '/pages/user/user'
								})
							}
						}
					});
				}
			},
			//关闭发起附议
			closeTip(){
				this.isMeeting = false;
			},
			//头部快速切换房间，跳转至切换房间页面
			changeHead() {
				//已经根据是否有房间信息展示切换图标了，无需在此处判断是否登录及有房间信息
				
				// this.$Router.push({
				// 	path: '/switch/switch'
				// })
				uni.navigateTo({
					url: '/pages/switch/switch'
				})
				
				
				// let _this = this;
				// if (uni.getStorageSync('phone')) {
				// 	if (uni.getStorageSync('loginFlag')) {
				// 		this.modalShow = true
				// 	} else {
				// 		uni.showModal({
				// 			title: '请先实名认证',
				// 			showCancel: false,
				// 			confirmText: '确认',
				// 			confirmColor: '#F9A832',
				// 			success: function(res) {
				// 				if (res.confirm) {
				// 					_this.$Router.push({
				// 						path: '/pages/realName/realName'
				// 					})
				// 				}
				// 			}
				// 		});
				// 	}
				// } else {
				// 	uni.showModal({
				// 		title: '请先登录',
				// 		showCancel: false,
				// 		confirmText: '确认',
				// 		confirmColor: '#F9A832',
				// 		success: function(res) {
				// 			if (res.confirm) {
				// 				console.log('a')
				// 				_this.$Router.pushTab({
				// 					path: '/pages/user/user'
				// 				})
				// 			}
				// 		}
				// 	});
				// }
			}
		}
	}
</script>
<style lang="scss">
	// ::v-deep uni-popup__wrapper{
	// 	width: 90%;
	// 	border-radius: 20rpx;
	// }
	//附议弹框
	.meeting-dialog{
		position: relative;
		::v-deep .u-mode-center-box{
			width: 670rpx !important;
			height: 800rpx;
			background: #FFFFFF !important;
			border-radius: 12rpx !important;
		}
		.meeting-wrap{
			padding: 40rpx;
			width: 700rpx;
			border-radius: 26rpx;
		}
		.meeting-title{
			text-align: center;
			font-size: 18px;
			font-weight: bold;
			padding-bottom:20px;
			border-bottom: 1px solid #E7ECE1;
		}
		.meeting-start{
			margin:40rpx 0 24rpx; 
			font-size: 16px;
			font-weight: bold;
		}
		.meeting-cont{
			color:#333;
			font-size: 28rpx;
			border-bottom: 60rpx;
		}
		.meeting-btn{
			width: 350rpx;
			height: 88rpx;
			line-height:88rpx;
			background: #FFFFFF;
			border-radius: 22px;
			border: 1px solid #427705;
			text-align: center;
			color:#427705;
			margin: 40px auto;
		}
	}
	
	.meeting-close{
		position: absolute;
		z-index: 999;
		margin-top: 370px;
		margin: 370px auto;
		left: 42%;
	}
	.meeting-close-btn{
		width: 80rpx;
		height: 80rpx;
	}
</style>
<style lang="scss" scoped>
	//::v-deep 覆盖样式
	::v-deep .u-notice-bar {
		padding: 0 0rpx !important;
		background: transparent !important;
	}
	::v-deep .u-notice-content {
		color: #447A05 !important;
		font-weight: 600;
	}
	
	::v-deep uni-image>div,
	uni-image>img {
		position: absolute !important;
	}
	
	::v-deep uni-swiper {
		height: 280rpx !important;
	}

	.a .swiper_img {
		width: 100%;
		height: 140px;
		box-shadow: 0px 6px 20px 0px rgba(155, 155, 155, 0.5);
	}

	.newIndex {
		height: 100vh;
		background: #f4f4f4;
		.top-bg {
			width: 100%;
			height: 560rpx;
			background: linear-gradient(180deg, #447A05 0%, #f4f4f4 100%);
			opacity: 1;
		}

		.wrap {
			padding: 80rpx 30rpx 0;
			position: relative;
			height: auto;

			.index-top {
				display: flex;
				align-items: center;
				justify-content: space-between;

				.icon {
					width: 82rpx;
					height: 82rpx;
					vertical-align: -28rpx;
					margin-right: 16rpx;
				}

				.txt {
					font-size: 42rpx;
					font-weight: 600;
					color: #FFFFFF;
				}
			}
			.noticeWrap{
				display: flex;
				justify-content: space-between;
				align-items: center;
			}
			.notice {
				width: 600rpx;
				height: 88rpx;
				background: #E7ECE1;
				border-radius: 44rpx;
				margin: 6rpx 0 12rpx;

				.notice-horn {
					position: relative;
					line-height: 88rpx;
					margin-left: 28rpx;
				}

				.horn {
					width: 36rpx;
					height: 32rpx;
					line-height: 88rpx;
					vertical-align: middle;
					margin-right: 24rpx;
				}

				.circle {
					background: red;
					width: 12rpx;
					height: 12rpx;
					position: absolute;
					top: 20rpx;
					left: 20rpx;
					border-radius: 50%;
				}

				.scroll-txt {
					font-weight: 500;
					color: #447A05;
					font-size: 14px;
					position: absolute;
					left: 40rpx;
					right: 32rpx;
					height: 88rpx;
				}
			}

			.swiper {
				margin-top: 20rpx;
			}

			.item {
				position: relative;
				display: flex;
				justify-content: space-between;
				align-items: center;
				margin-top: 20rpx;

				.title {
					font-size: 40rpx;
					font-weight: bold;
					z-index: 1;
				}

				.title::before {
					content: "";
					position: absolute;
					width: 80px;
					height: 4px;
					background: linear-gradient(270deg, #F4FEE9 0%, #9CE14D 100%);
					border-radius: 3px;
					top: 42rpx;
					z-index: -1;
				}

				.more {
					font-size: 28rpx;
					color: #999;

					.more-img {
						width: 24rpx;
						height: 20rpx;
						vertical-align: middle;
					}
				}
			}

			.application {
				width: 100%;
				height: 220rpx;
				margin: 20rpx 0 60rpx 0;
				background: #ffffff;
				border-radius: 12px;
				display: flex;
				align-items: center;
				flex-wrap: nowrap;
				width: 100%;
				overflow: auto;

				.block {
					display: flex;
					justify-content: space-around;
					align-items: center;
					padding: 10rpx 20rpx;
					margin-top: -52rpx;

					.app {
						width: 140rpx;
						height: 100rpx;
						margin-right: 30rpx;
						text-align: center;
					}

					.app-img {
						width: 96rpx;
						height: 96rpx;
					}

					.circle1 {
						width: 16px;
						height: 17px;
						background: red;
						border-radius: 50%;
						font-size: 20rpx;
						color: #fff;
						margin-left: -18rpx;
						position: absolute;
					}

					.txt {
						font-size: 32rpx;
						color: #666;
					}
				}
			}
		}

		.u-notice-bar {
			padding: 0 !important;
			background: #fff !important;
		}

		.modal-bg {
			width: 100%;
			height: 100vh;
			position: fixed;
			top: 0;
			left: 0;
			bottom: 0;
			z-index: 999;
			background: rgba(0, 0, 0, 0.3);
		}

		.modal-cont {
			// height: 266rpx;
			background: #ffffff;
			// box-shadow: 0rpx 6rpx 12rpx 0rpx rgba(0, 0, 0, 0.12);
			border-radius: 24rpx 24rpx 0px 0rpx;
			position: fixed;
			right: 0;
			left: 0;
			bottom: 0;
			z-index: 1000;
		}

		.modal-text {
			font-size: 32rpx;
			font-family: PingFangSC-Regular, PingFang SC;
			font-weight: 400;
			color: #333333;
			text-align: center;
			height: 118rpx;
			line-height: 118rpx;
			border-bottom: 1rpx solid #e6e9ed;
		}

		.modal-cancel {
			height: 120rpx;
			line-height: 120rpx;
			text-align: center;
			font-size: 32rpx;
			font-family: PingFangSC-Regular, PingFang SC;
			font-weight: 400;
			color: #447A05;
		}
		.down__Owner_App {
			position: relative;
		}
		.down_cont_btn {
			position: absolute;
			width: 180rpx;
			height: 60rpx;
			left: 20rpx;
			top: -100rpx;
		}
		.u-btn {
			width: 100%;
			height: 100%;
		}
	}
</style>
